<?php

namespace app\model;
use app\utils\NumText;
use think\model\concern\SoftDelete;
class MemberVip extends BaseModel
{
    use SoftDelete;
    protected $deleteTime = 'delete_at';
    protected $table = 'member_vip';
    public function getStatusTextAttr($value, $data)
    {
        return NumText::statusText($data['status']??'');
    }

    public function getDiscountAttr($value){
        return removeTrailingZeros($value);
    }
}
